package vn.com.aptech.msh.controller;

import java.io.IOException;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.enterprise.context.RequestScoped;
import javax.inject.Inject;
import javax.inject.Named;
import vn.com.aptech.msh.business.IFAQBean;

import vn.com.aptech.msh.entities.FaqGroup;

/**
 *
 * @author trietto
 */
@Named("faqController")
@RequestScoped
public class FAQController implements Serializable {

    @Inject
    IFAQBean faqBusiness;
    private List<FaqGroup> faqGroups;

    @PostConstruct
    public void init() throws IOException {
        faqGroups = faqBusiness.allFaqsGroup();
    }

    public List<FaqGroup> getFaqGroups() {
        return faqGroups;
    }
}
